import request from '@/utils/request'
export const getRoleListAPI = (params) => request.get('/sys/role', { params })
export const addRoleAPI = data => request.post('/sys/role', data)
export const updateRoleAPI = data => request.put(`/sys/role/${data.id}`, data)
export const delRoleAPI = (id) => request.delete(`/sys/role/${id}`)
